﻿<?xml version="1.0" encoding="utf-8" ?>
<log4net>
  <!--appender-->
  <appender name="SystemFileAppender" type="log4net.Appender.FileAppender">
    <file value="Log\\system.txt" />
    <appendToFile value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %message%newline" />
    </layout>
  </appender>
  <appender name="PacketFileAppender" type="log4net.Appender.FileAppender">
    <file value="Log\\packet.txt" />
    <appendToFile value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%d{yyyy-MM-dd HH:mm:ss} %message%newline" />
    </layout>
  </appender>
  <!--logger-->
  <root>
    <level value="All" />
    <appender-ref ref="SystemFileAppender" />
  </root>
  <logger name="packet-logger" additivity="false">
    <level value="INFO" />
    <appender-ref ref="PacketFileAppender" />
  </logger>
</log4net>

